package com.ls.controller.logistic.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName LogisticsSmsModel
 * @Description 物流单号发送短信model 四个字段
 * @Author pengyu
 * @Date 2024/6/27 17:14
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class LogisticsSmsModel {
    @NotNull(message = "物流id不能为空")
    private Long logisticId;
    @NotBlank(message = "被叫号码不能为空")
    private String outerPhone;
    /**
     * 对方姓名
     */
    private String outerName;
    /**
     * 短信内容
     */
    @NotBlank(message = "短信内容不能为空")
    private String content;
    /**
     * 短信类型 1为发件短信 2为签收短信 3到件 4派件 5售后
     */
    @NotNull(message = "短信类型不得为空")
    @Max(value = 5)
    @Min(value = 1)
    private Integer sendStatus;
    /**操作人*/
    private String name;
    /**站点*/
    private String address;
    /**物流状态*/
    private String logisticStatus;
    /**物流轨迹*/
    private String logisticContent;
}
